package cn.com.dcsgo.domain.util;

import cn.com.dcsgo.domain.entity.User;
import cn.com.dcsgo.domain.vo.UserRegisterVo;

/**
 * UserConverter
 *
 * @author Dcsgo
 * @since 2025/4/3 14:13
 */

public class UserConverter {
    public static User convert(UserRegisterVo userRegisterVo) {
        User user = new User();
        user.setUsername(userRegisterVo.getUsername());
        user.setPassword(userRegisterVo.getPassword());
        return user;
    }
}
